package com.varian.system.dto;

import com.varian.system.enums.ParamTypeEnum;
import com.varian.tool.enums.CommonStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author ben
 * @since 2025/2/9
 */
@Data
@Schema(title = "系统参数数据对象")
public class SysParamDTO {
    @Schema(title = "参数编码")
    @NotBlank(message = "参数编码不能为空")
    private String paramCode;
    @Schema(title = "参数类型")
    @NotNull(message = "参数类型不能为空")
    private ParamTypeEnum paramType;
    @Schema(title = "参数值")
    @NotNull(message = "参数值不能为空")
    private Object paramValue;
    @Schema(title = "参数描述")
    private String paramDesc;
    @Schema(title = "参数状态")
    @NotNull(message = "参数状态不能为空")
    private CommonStatusEnum paramStatus;
}
